import { RouteRecordRaw } from "vue-router";

//根据模块手动注册
export default function autoloadModuleRoutes(){
  //路由模块统一放在module下面
 const modules= import.meta.globEager("../module/**/*.ts");

 const routes=[] as RouteRecordRaw[]
  Object.keys(modules).forEach(key=>{
   routes.push((modules[key]as any).default)
 })
  return routes
}